FROM nginx:stable-alpine

ARG WORKDIR

# ADD Custom Config
ADD nginx.conf /etc/nginx/nginx.conf
ADD default.conf /etc/nginx/conf.d/default.conf

# Make Directory - Workspace
RUN mkdir -p ${WORKDIR}

# ADD and set Group
RUN addgroup -g 1000 laravel && adduser -G laravel -g laravel -s /bin/sh -D laravel

# Set Group to Workspace
RUN chown laravel:laravel ${WORKDIR}